package com.kfm.ajax.controller;

import com.kfm.ajax.model.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
// @CrossOrigin("*")
public class UserController {

    @PostMapping("/user/login")
    public Result login(@RequestBody Map<String, String> map) {
        System.out.println(map);
        return Result.success("登录成功");
    }
}
